<!DOCTYPE html>
<html lang="zh-cn">
<head>

  <meta charset="utf-8" />

  
  <title>org-mode</title>

  
  





  
  <meta name="author" content="" />
  <meta name="description" content="Emacs move C-v Move forward one screenful 下翻一页 M-v Move backward one screenful 上翻一页 C-l Clear screen and redisplay all the text, moving the text around the cursor to the center of the screen.(That&#39;s CONTROL-L, not CONTROL-1.) C-f Move forward a character 向前一个字符 C-b Move backward a character 向后一个字符 M-f Move forward a word" />

  
  
    <meta name="twitter:card" content="summary" />
    <meta name="twitter:site" content="@gohugoio" />
    <meta name="twitter:title" content="org-mode" />
    <meta name="twitter:description" content="Emacs move C-v Move forward one screenful 下翻一页 M-v Move backward one screenful 上翻一页 C-l Clear screen and redisplay all the text, moving the text around the cursor to the center of the screen.(That&#39;s CONTROL-L, not CONTROL-1.) C-f Move forward a character 向前一个字符 C-b Move backward a character 向后一个字符 M-f Move forward a word" />
    <meta name="twitter:image" content="https://buyaoshushu.gitee.io/img/avatar.jpg" />
  

  
  <meta property="og:type" content="article" />
  <meta property="og:title" content="org-mode" />
  <meta property="og:description" content="Emacs move C-v Move forward one screenful 下翻一页 M-v Move backward one screenful 上翻一页 C-l Clear screen and redisplay all the text, moving the text around the cursor to the center of the screen.(That&#39;s CONTROL-L, not CONTROL-1.) C-f Move forward a character 向前一个字符 C-b Move backward a character 向后一个字符 M-f Move forward a word" />
  <meta property="og:url" content="https://buyaoshushu.gitee.io/post/first/" />
  <meta property="og:image" content="https://buyaoshushu.gitee.io/img/avatar.jpg" />




<meta name="generator" content="Hugo 0.42.1" />


<link rel="canonical" href="https://buyaoshushu.gitee.io/post/first/" />
<link rel="alternative" href="/index.xml" title="不要叔叔" type="application/atom+xml" />


<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="format-detection" content="telephone=no,email=no,adress=no" />
<meta http-equiv="Cache-Control" content="no-transform" />


<meta name="robots" content="index,follow" />
<meta name="referrer" content="origin-when-cross-origin" />







<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="不要叔叔" />
<meta name="msapplication-tooltip" content="不要叔叔" />
<meta name='msapplication-navbutton-color' content="#5fbf5e" />
<meta name="msapplication-TileColor" content="#5fbf5e" />
<meta name="msapplication-TileImage" content="/img/tile-image-windows.png" />
<link rel="icon" href="/img/favicon.ico" />
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png" />
<link rel="icon" sizes="192x192" href="/img/touch-icon-android.png" />
<link rel="apple-touch-icon" href="/img/touch-icon-apple.png" />
<link rel="mask-icon" href="/img/safari-pinned-tab.svg" color="#5fbf5e" />



<link rel="stylesheet" href="//cdn.bootcss.com/video.js/6.2.8/alt/video-js-cdn.min.css" />

<link rel="stylesheet" href="/css/bundle.ff02473a9a.css" />


  
  <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <script src="//cdn.bootcss.com/video.js/6.2.8/ie8/videojs-ie8.min.js"></script>
  <![endif]-->

<!--[if lte IE 11]>
    <script src="//cdn.bootcss.com/classlist/1.1.20170427/classList.min.js"></script>
  <![endif]-->


<script src="//cdn.bootcss.com/object-fit-images/3.2.3/ofi.min.js"></script>


<script src="//cdn.bootcss.com/smooth-scroll/12.1.4/js/smooth-scroll.polyfills.min.js"></script>


</head>
  <body>
    
    <div class="suspension">
      <a title="Go to top" class="to-top is-hide"><span class="icon icon-up"></span></a>
      
        
      
    </div>
    
    
  <header class="site-header">
  <img class="avatar" src="/img/avatar.jpg" alt="Avatar">
  
  <h2 class="title">不要叔叔</h2>
  
  <p class="subtitle"></p>
  <button class="menu-toggle" type="button">
    <span class="icon icon-menu"></span>
  </button>
  <nav class="site-menu collapsed">
    <h2 class="offscreen">Main Menu</h2>
    <ul class="menu-list">
      
      
      
      
        <li class="menu-item
            
            
            ">
            <a href="/">Home</a>
          </li>
      
        <li class="menu-item
            
            
            ">
            <a href="/posts/">Blog</a>
          </li>
      
        <li class="menu-item
            
            
            ">
            <a href="/about/">About</a>
          </li>
      
    </ul>
  </nav>
  <nav class="social-menu collapsed">
    <h2 class="offscreen">Social Networks</h2>
    <ul class="social-list">

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      

      <li class="social-item">
        <a href="//weibo.com/buyaoshushu" title="Weibo"><span class="icon icon-weibo"></span></a>
      </li>

      

      

      

      

      

      <li class="social-item">
        <a href="/index.xml"><span class="icon icon-rss" title="RSS"></span></a>
      </li>

    </ul>
  </nav>
</header>

  <section class="main post-detail">
    <header class="post-header">
      <h1 class="post-title">org-mode</h1>
      <p class="post-meta">@ · Jun 20, 2018 · 2 min read</p>
    </header>
    <article class="post-content"><h1 id="emacs">Emacs</h1>

<h2 id="move">move</h2>

<p>C-v Move forward one screenful 下翻一页
M-v Move backward one screenful 上翻一页
C-l Clear screen and redisplay all the text, moving the text around the cursor to the center of the screen.(That's CONTROL-L, not CONTROL-1.)
C-f Move forward a character 向前一个字符
C-b Move backward a character 向后一个字符
M-f Move forward a word 向前一个单词
M-b Move backward a word 向后一个单词
C-n Move to next line 向下一行
C-p Move to previous line 向上一行
C-a Move to beginning of line 移动至行首
C-e Move to end of line 移动至行尾
M-a Move back to beginning of sentence 移动至段首
M-e Move forward to end of sentence 移动至段尾
M-< Move to the beginnin 移动至文档开头
M-> Move to the end 移动至文档结尾</p>

<h2 id="other">other</h2>

<h2 id="windows">windows</h2>

<h2 id="insert-and-delete">insert and delete</h2>

<h2 id="files">files</h2>

<h2 id="buffers">buffers</h2>

<h2 id="search">search</h2>

<h2 id="multiple-windows">multiple windows</h2>

<p>C-u repeat 重复执行
C-g stop command 取消命令
C-x1 One window (i.e., kill all other windows) 关闭其他窗口
C-x o Other window 移动到其他窗口
C-hk C-f.See how this window shrinks, while a new one appears to display documentation on the C-f command.
<DEL> Delete the character just before the cursor 删除前一字符
C-d Delete the next character after the cursor 删除下一字符
M-<DEL> Kill the word immediately beforeresult  the cursor
result M-d Kill the next word after the cursor 删System除下一单词 
C-k Kill from the cursor position to end of line 删除至行尾
M-k Kill to the end of the current sentence 删除至段尾
C-<SPC> 开启选择模式
C-w 剪切
M-w 复制
C-y 粘贴
M-y 
C-/ 撤销
C-_ 
C-x u undo
C-x C-f   Find a file 打开一个文件
C-x C-s 保存文件
C-x C-b List buffers
C-x s Save some buffers
C-s 开始搜索模式
C-M-v 下翻其他窗口</p>

<h2 id="multiple-frames">multiple frames</h2>

<h2 id="无法输入中文">无法输入中文</h2>

<p>M-x make-frame <Return> 打开新窗口
M-x delete-frame <Return> 关闭当前窗口
根据Fcitx的介绍：当LC_CTYPE为英文时，在Emacs上可能无法使用输入法。</p>

<p>好吧，我也遇到了。</p>

<p>解决办法很简单：</p>

<p>打开下面两个文件并分别在文件结尾添加如下的命令并保存即可。</p>
<!-- +BEGIN_SRC bash -->

<p>sudo emacs <em>home/nomasp</em>.bashrc
sudo emacs /etc/environment
LC_CTYPE="zh_CN.utf8"</p>
<!-- +END_SRC -->

<h2 id="org-mode">org-mode</h2>

<ol>
<sTAB 快速插入源码
<li>ttt</li>
<li>aaa</li>
<li>aaa::aaaa</li>
<li>aaa</li>
<li>ttt</li>
</ol>

<h1 id="继续认真学习emacs">继续认真学习emacs</h1>

<h2 id="基础使用"><span class="todo TODO">TODO</span> 基础使用</h2>

<h2 id="spacemacs">spacemacs</h2>

<h3 id="安装注意">安装注意</h3>

<h4 id="更换清华源">更换清华源</h4>

<h2 id="projectile">projectile</h2>

<h3 id="创建一个新项目">创建一个新项目</h3>

<h3 id="常用快捷键">常用快捷键</h3>

<p>修改.spacemacs
(defun dotspacemacs/user-init ()
  "Initialization function for user code.
It is called immediately after `dotspacemacs/init', before layer configuration
executes.
 This function is mostly useful for variables that need to be set
before packages are loaded. If you are unsure, you should try in setting them in
`dotspacemacs/user-config' first."
  (setq-default
   configuration-layer--elpa-archives
   '(("melpa-cn" . "https://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")
     ("gnu-cn" . "https://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
     ("org-cn" . "https://mirrors.tuna.tsinghua.edu.cn/elpa/org/")))
  )
在文件夹中添加.projectile空文件即可
C-c pf 查找文件</p>

<h2 id="org-mode-1">org-mode</h2>

<h3 id="emacs-lisp">emacs-lisp</h3>

<p>运行脚本并获取结果，C-c C-c</p>

<pre><code class="language-emacs-lisp"> (print  10110)
</code></pre>

<pre><code class="language-clojure">(print 10010)
</code></pre>

<h3 id="lisp">lisp</h3>
<pre class="example">
10110
</pre>

<pre><code class="language-clojure"> (print 1)
</code></pre>

<h3 id="python">python</h3>

<pre><code class="language-python">return 23/30
</code></pre>
<pre class="example">
0.7666666666666667
</pre>

<h3 id="shell">shell</h3>

<pre><code class="language-sh">echo 155
</code></pre>

<h3 id="htmnamel">htmnamel</h3>

<pre><code class="language-browser">&lt;html&gt;
&lt;body&gt;reasonable
&lt;p&gt;This is a html source out test&lt;/p&gt;
&lt;/body&gt;
&lt;html&gt;
</code></pre>

<h3 id="java">java</h3>

<pre><code class="language-java">public class Bar
{
 private double x = 0;
 public void set(double in){
 x = in;
 }
 public void print(){
 System.out.println(x);
 }
 public static void main(String[] argv){
 Bar myclass = new Bar();
 myclass.set(100);
 myclass.print();
 System.out.println(&quot;123123&quot;);
 }
}
#+end_src

#+RESULTS:

#+BEGIN_SRC java :classname &quot;First&quot; 
public class First{
  public static void main(String args[]){
    String a=&quot;abc&quot;;
    System.out.println(a);
    //System.out.println(&quot;aaaa&quot;);
  }
}
</code></pre>
<pre class="example">
abc
</pre>

<h3 id="ipython">ipython</h3>

<pre><code class="language-ipython">  def foo(x):
      return x + 9
  [foo(x) + 7 for x in range(7)]
</code></pre>

<table>
<tbody>
<tr>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td>21</td>
<td>22</td>
</tr>
</tbody>
</table>

<h3 id="go">go</h3>

<pre><code class="language-go">import &quot;fmt&quot;
func main() {
	fmt.Println(&quot;Hello, 世界&quot;)
}
</code></pre>
<pre class="example">
Hello, 世界
</pre>

<h3 id="newlisp">newlisp</h3>

<pre><code class="language-newlisp">(print (+ 5 1))

</code></pre>

<h3 id="kotlin">kotlin</h3>

<pre><code class="language-kotlin">fun fib(n: Int):Int {
    return when (n) {
           0,1 -&gt; 1
           else -&gt; fib(n - 1) + fib(n - 2)
    }
}

fib(19)
</code></pre>

<h2 id="lord-of-the-rings">Lord of the Rings</h2>

<ol>
<li value="111"></li>
<li value="2"></li>
My favorite scenes are (in this order)
<li>The attack of the Rohirrim</li>
<li>Eowyn's fight with the witch king</li>
<li>this was already my favorite scene in the book</li>
<li>I really like Miranda Otto.</li>
Important actors in this film are:
<dt>Elijah Wood</dt>
<dd>He plays Frodo</dd>
<dt>Sean Astin</dt>
<dd>He plays Sam, Frodo's friend.</dd>
</ol>

<h3 id="快捷键">快捷键</h3>

<h4 id="cycling">cycling</h4>

<h4 id="motion">motion</h4>

<p>TAB 展开当前树
S-TAB 展开所有树
C-c C-n 下一个标题
C-c C-p 上一个标题
C-c C-f 下一个同级标题
C-c C-b 上一个同级标题
C-c C-u 返回上</p>

<h1 id="linux">Linux</h1>

<h2 id="打字软件">打字软件</h2>

<h3 id="终端">终端</h3>

<h1 id="markdown">Markdown</h1>

<h2 id="转pdf">转pdf</h2>

<p>gtypist</p>

<pre><code class="language-bash">pandoc -N --toc -f markdown+smart  --pdf-engine=xelatex -V CJKmainfont='Source Han Sans CN' -V mainfont='Source Han Sans CN' -V geometry:margin=1in 核算服务.md  -o output.pdf
</code></pre>
</article>
    <footer class="post-footer">
      
      <ul class="post-tags">
        
          <li><a href="/tags/emacs"><span class="tag">Emacs</span></a></li>
        
          <li><a href="/tags/org-mode"><span class="tag">Org-Mode</span></a></li>
        
      </ul>
      
      <p class="post-copyright">
        
      </p>
    </footer>
    
      
    
  </section>
  <footer class="site-footer">
  <p>© 2017-2018 不要叔叔</p>
  <p>Powered by <a href="https://gohugo.io/" target="_blank">Hugo</a> with theme <a href="https://github.com/laozhu/hugo-nuo" target="_blank">Nuo</a>.</p>
  
</footer>



<script async src="//cdn.bootcss.com/video.js/6.2.8/alt/video.novtt.min.js"></script>
<script async src="//cdn.bootcss.com/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [['$','$'], ['\\(','\\)']],
      displayMath: [['$$','$$'], ['\\[','\\]']],
      processEscapes: true,
      processEnvironments: true,
      skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
      TeX: { equationNumbers: { autoNumber: "AMS" },
      extensions: ["AMSmath.js", "AMSsymbols.js"] }
    }
  });
</script>
<script type="text/x-mathjax-config">
  // Fix <code> tags after MathJax finishes running. This is a
  // hack to overcome a shortcoming of Markdown. Discussion at
  // https://github.com/mojombo/jekyll/issues/199
  MathJax.Hub.Queue(() => {
    MathJax.Hub.getAllJax().map(v => v.SourceElement().parentNode.className += ' has-jax');
  });
</script>

<script src="/js/bundle.d1288006cf.js"></script>




  </body>
</html>
